<template>
  <!--  这里是其他接口  -->
  <div>
    <ul>
      <li>
        <!--        搞笑段子接口-->
        <router-link :to="{path:'/play'}">
          <img src="../../assets/play/1.png"
               alt="">
          <p>经典搞笑段子</p>
        </router-link>
      </li>
      <li>
        <!--  文字转换二维码-->
        <router-link :to="{path:'/qrcode'}">
          <img src="../../assets/play/2.png"
               alt="">
          <p>文字转二维码</p>
        </router-link>
      </li>
      <li>
        <!--  60秒读懂世界-->
        <router-link :to="{path:'/dailynews'}">
          <img src="../../assets/play/3.png"
               alt="">
          <p>60秒读懂世界</p>
        </router-link>
      </li>

      <!--        豆瓣电影排行榜-->
      <li>
        <router-link :to="{path:'/watercress'}">
          <img src="../../assets/play/4.png"
               alt="">
          <p>豆瓣电影排行榜</p>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>

export default {
  name: "Games",
}
</script>

<style scoped lang="less">
ul {
  display: flex;
  justify-content: space-evenly;
  padding: 10px;

  > li {
    &:first-child a img,
    &:nth-child(2) a img {
      transform: scale(0.6);
    }
    &:nth-child(3) a img,
    &:nth-child(4) a img {
      transform: scale(0.7);
    }
    //padding: 10px;
    //width: 19%;
    //height: 35px;
    //border: 1px solid #ddd;
    text-align: center;
    > a {
      text-decoration: none;
      display: block;
      //width: 60px;
      //height: 60px;
      padding: 4px;
      border-radius: 50%;
      box-sizing: border-box;
    }
    i {
      font-size: 42px;
      margin: 6px 0;
    }

    img {
      width: 75%;
      //height: 50px;
    }

    p {
      text-align: center;
      font-size: 14px;
    }
  }
}
</style>